﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="坐标转换对比.aspx.cs" Inherits="GIS地图坐标转换_坐标转换对比" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>坐标转换对比</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="tt" runat="server"></asp:Label>
            <br />
            <br />
            <br />
            <fieldset>
                <legend>WGS1984原始坐标</legend>

                //GPS坐标 
                <br />
                var xx = 116.397428;
                <br />
                var yy = 39.90923;<br />

                Lon:<asp:TextBox ID="lonwgs" runat="server">116.397428</asp:TextBox>
&nbsp;Lat:<asp:TextBox ID="latwgs" runat="server">39.90923</asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="转换" OnClick="Button1_Click" />
                <br />
                <br />
            </fieldset><br />
&nbsp;<fieldset>
                <legend>google坐标</legend>
                <br />
                <br />
                Lon:<asp:TextBox ID="longoogle" runat="server"></asp:TextBox>
&nbsp;Lat:<asp:TextBox ID="latgoogle" runat="server"></asp:TextBox>
                <br />
            </fieldset><br />
            <br />
&nbsp;<br />

            <fieldset>
                <legend>百度坐标</legend>
                Lon:<asp:TextBox ID="lonbaidu" runat="server"></asp:TextBox>
&nbsp;Lat:<asp:TextBox ID="latbaidu" runat="server"></asp:TextBox>
            </fieldset>
            <br />

        </div>
    </form>
    <p>
        百度API</p>
    <p>
        116.410044101705 (baidu)116.41004950566
    </p>
    <p>
        39.9169728560751 (baidu)39.916979519873</p>
    <p>
        两点距离:0.99米</p>
    <p>
        http://developer.baidu.com/map/jsdemo.htm#a6_1</p>
</body>
</html>
